/**
 * 
 */
package aspectjutil.eventmanager.testmodels;

import aspectjutil.adviseutil.Util;
import aspectjutil.eventmanager.label.EventTrigger;

public class ChildEventProducer3 extends EventProducer {
	@Override
	@EventTrigger( value=SampleEventClass.OverridenCalculationEvent.class)
	public int calculate( int x, int y) {
		if ( logger.isDebugEnabled()) {
			String thisMethodInfo = Util.getCallingMethodInfo( Thread.currentThread().getStackTrace(), 1, 1).get( 0);
			logger.debug( 
					"Executing" + (( thisMethodInfo.indexOf( "]:") > 0) ? thisMethodInfo.substring( thisMethodInfo.indexOf( "]:") + 2) : thisMethodInfo)
					);
		}
		
		return x*y;
	}
}